package org.nobject.common.swing.g;

import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.HeadlessException;

import javax.swing.JDialog;

/**
 * GDialog
 *
 * @author bianrongjun
 * @version 1.0
 */
public class GDialog extends JDialog implements IG{

	/**
	 * 构造函数 
	 * @param owner
	 * @param modal
	 * @throws HeadlessException
	 */
	public GDialog(Frame owner, boolean modal) throws HeadlessException {
		super(owner, modal);
		this.core=new GComponent();
	}
	
	
	public GDialog(Frame owner, boolean modal,Dimension size) throws HeadlessException {
		super(owner, modal);
		this.core=new GComponent();
		this.setSize(size);
	}
	/** GComponent */
	private GComponent core;
	public GComponent getGCore() {return core;}
	
	
	public void paintChildren(Graphics g) {core.paintChildren(g);}
}
